package com.lanyun.serviceimpl;/**
 * @author zhy
 * @date 2021/1/6 - 13:21
 */

import com.lanyun.dao.PrivilegeDao;
import com.lanyun.pojo.Privilege;
import com.lanyun.service.PrivilegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**

 @ClassName PrivilegeServiceImpl
 @Description xxx
 @Author zhy
 @Date 2021/1/6 - 13:21
 @Version 1.0
 **/
@Service
public class PrivilegeServiceImpl implements PrivilegeService {
    @Autowired
    PrivilegeDao privilegeDao;
    @Override
    public List<Privilege> findPriviById(List<Integer> list) {//----根据拿到的权限id集合查询出所有权限对象。
        return privilegeDao.findPrivilegeById(list);
    }
}
